<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>静态注册onload事件</title>
    <script type="text/javascript">
        function onloadFunc(){
            alert("静态注册的onload事件的所有代码");
        }
    </script>
</head>
<body onload="onloadFunc();">

</body>
</html>